//
//  SearchCollectionViewCell.m
//  LubanWork
//
//  Created by xiaohao on 2020/1/11.
//  Copyright © 2020 xiaohao. All rights reserved.
//

#import "SearchCollectionViewCell.h"

@implementation SearchCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self setFrame];
    }
    return self;
}
-(void)setFrame{
    [self addSubview:self.titLab];
    [self.titLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_offset(5);
        make.top.mas_offset(5);
        make.right.mas_offset(0);
        make.bottom.mas_offset(5);
    }];
}
-(UILabel *)titLab{
    if (!_titLab) {
        _titLab = [UILabel CreatLabeltext:@"" Font:MarkFont(15) Textcolor:kColorFromRGBHex(0x775FFB) textAlignment:NSTextAlignmentCenter];
        _titLab.backgroundColor = ColorWhite;
    }
    return _titLab;
}
@end
